home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Bases de données / □ New Mint Soft® / Ten Digits 1.1 / Ten Digits®©1.1 / Ten DigitsÆ©1.1 / card_4482.txt < prev    next >
Text File  |  1996-01-27  |  21KB  |  291 lines

  1. -- card: 4482 from stack: in.1
  2. -- bmap block id: 4809
  3. -- flags: 4000
  4. -- background id: 2737
  5. -- name: nif WList = "" then pass CommandKeyDownelseif there is a window (item 1 of WList) then close window (item 1 of WList)elsedelete item 1 of WListdo the Paramsexit CommandKeyDownend ifend ifelse pass CommandKeyDownend CommandKeyDownglobal WListon KeyDown aKey --  3 = Enter ; 13 = Returnif WList ¡ "" then pass KeyDownif charToNum(aKey) is in "3 ,(13)" thenset hilite of cd btn "Quitter" to truewait 35set hilite of cd btn "Quitter" to falsesend mouseUp to cd btn "Quitter"else pass KeyDownend KeyDownon mouseDownInPictureclose window param(1)end mouseDownInPicture┼░┼░┼░┼░┼░┼░┼░┼░ Pictoid handlers + ┼░┼░┼░┼░┼░┼░on openPictoid WNameglobal WListput WName & "," before WListend openPictoidon ClosePictoid WNameglobal WListrepeat with i = number of items of WList down to 1if item i of WList = WName thendelete item i of WListexit repeatend ifend repeatend closePictoidon mouseDownInPictoid WNameif WName = "MPadLink Pub" thenclose window Wnameexit mouseDownInPictoidelse global WListset cursor to watchif item 1 of WList ¡ WName thenrepeat with i = 2 to number of items of WListif item i of WList = WName thendelete item i of WListexit repeatend ifend repeatput WName & "," before WListend ifend mouseDownInPictoidfunction dept numbDept,nom,code,clÄreturn numbDept &" - " &nom& "." &return&"Code tÄlÄphonique dÄpartemental : " & code &return┬&return& "NumÄro abonnÄ ê faire prÄcÄder du " & clÄend deptfunction Reg nom,zone,clÄreturn "RÄgion "&nom&return &"Elle sera intÄgrÄe ê la nouvelle zone tÄlÄphonique ╟"┬&zone&"╚." & return & "Faire prÄcÄder les 8 chiffres du "& clÄ &"."end Regon MouseUpInPictoid WName,WId,ShpType,S,clkLoc,same -- S = ShpNbif not same thenbeep 2answer "Erreur 220 volts - Utilisateur inadvertant ou fatiguÄ."&return&"Le curseur a changÄ de zone gÄographique lors du clic."┬& return &"Impossible d'accÄder ê votre requÉte." & return ┬&"Veuillez recommencer."exit MouseUpInPictoidend ifset numberFormat to "00"if S = 0 and WName ¡ "Le trÄsor" then exit MouseUpInPictoidif WName is "RÄgions" thenif S is "1" then answer Reg("Bretagne :","Nord-Ouest","02")if S is "2" then answer Reg("Basse-Normandie :","Nord-Ouest","02")if S is "3" then answer Reg("Haute-Normandie :","Nord-Ouest","02")if S is "4" then answer Reg("Nord-Pas-de Calais :","Nord-Est","03")if S is "5" then answer Reg("Picardie :","Nord-Est","03")if S is "6" then answer Reg("Champagne-Ardennes :","Nord-Est","03")if S is "7" then answer Reg("Lorraine :","Nord-Est","03")if S is "8" then answer Reg("Alsace :","Nord-Est","03")if S is "9" then answer Reg("Ile-de-France :","Ile-de-France","01")if S is "10" then answer Reg("Centre :","Nord-Ouest","02")if S is "11" then answer Reg("Pays de Loire :","Nord-Ouest","02")if S is "12" then answer Reg("Poitou-Charentes :","Sud-Ouest","05")if S is "13" then answer Reg("Limousin :","Sud-Ouest","05")if S is "14" then answer Reg("Auvergne :","Sud-Est","04")if S is "15" then answer Reg("Bourgogne :","Nord-Est","03")if S is "16" then answer Reg("RhÖne-Alpes :","Sud-Est","04")if S is "17" then answer Reg("Franche-ComtÄ :","Nord-Est","03")if S is "18" then answer Reg("Aquitaine :","Sud-Ouest","05")if S is "19" then answer Reg("Midi-PyrÄnÄes :","Sud-Ouest","05")if S is "20" then answer Reg("Languedoc-Roussillon :","Sud-Est","04")if S is "21" then answer Reg("Provence-Alpes-CÖte d'Azur :","Sud-Est","04")if S is "22" then answer Reg("Corse :","Sud-Est","04")if S is "23" then answer "Etes-vous vraiment certain que je suis une rÄgion ?" with "Succeptible" or "avec ìa !!"end ifif WName is "DÄpartements" thenif S is "1" then answer dept(14,Calvados,31,02)if S is "2" then answer dept(70,"Haute-SaÖne",84,03)if S is "3" then answer dept(53,Mayenne,43,02)if S is "4" then answer dept(26,DrÖme,75,04)if S is "5" then answer dept(45,Loire,38,02)if S is "6" then answer dept(18,Cher,48,02)if S is "7" then answer dept(04,"Alpes de Haute-Provence",92,04)if S is "8" then answer dept(12,Aveyron,65,05)if S is "9" then answer dept(86,Vienne,49,05)if S is "10" then answer dept(68,"Haut-Rhin",89,03)if S is "11" then answer "2A - Corse-du-sud."&return&"2B - Haute-Corse."&return ┬&"Code tÄlÄphonique dÄpartemental: 95"&return&return& "NumÄro abonnÄ ê faire prÄcÄder du 04."if S is "12" then answer dept(59,Nord,"20 - 27 ou 28",03)if S is "13" then answer dept(62,"Pas-de-Calais",21,03)if S is "14" then answer dept(80,Somme,22,03)if S is "15" then answer dept(76,"Seine-Martime",35,02)if S is "16" then answer dept(27,Eure,32,02)if S is "17" then answer dept(60,Oise,44,03)if S is "18" then answer dept(02,Aisne,23,03)if S is "19" then answer dept(61,Orne,33,02)if S is "20" then answer dept(28,"Eure-et-Loir",37,02)if S is "21" then answer dept(51,Marne,26,03)if S is "22" then answer dept(55,Meuse,29,03)if S is "23" then answer dept(54,"Meurthe-et-Moselle","8╔",03)if S is "24" then answer dept(67,"Bas-Rhin",88,03)if S is "25" then answer dept(25,Doubs,81,03)if S is "26" then answer dept(35,"Ille-et-Vilaine",99,02)if S is "27" then answer dept(22,"CÖtes-d'Armor",96,02)if S is "28" then answer dept(29,FinistÅre,98,02)if S is "29" then answer dept(56,Morbihan,97,02)if S is "30" then answer dept(72,Sarthe,43,02)if S is "31" then answer dept(41,"Loir-et-Cher",54,02)if S is "32" then answer dept(89,Yonne,86,03)if S is "33" then answer dept(49,"Maine-et-Loire",41,02)if S is "34" then answer dept(37,"Indre-et-Loire",47,02)if S is "35" then answer dept(79,"Deux-SÅvres",49,05)if S is "36" then answer dept(39,Jura,84,03)if S is "37" then answer dept(58,NiÅvre,86,03)if S is "38" then answer dept(03,Allier,70,04)if S is "39" then answer dept(01,Ain,"85 - 7╔ - 79 - 74 ou 50",04)if S is "40" then answer dept(23,Creuse,55,05)if S is "41" then answer dept(16,Charente,45,05)if S is "42" then answer dept(17,"Charente-Maritime",46,05)if S is "43" then answer dept(33,Gironde,"56 - 57",05)if S is "44" then answer dept(24,Dordogne,53,05)if S is "45" then answer dept(47,"Lot-et-Garonne",53,05)if S is "46" then answer dept(19,CorrÅze,55,05)if S is "47" then answer dept(87,"Haute-Vienne",55,05)if S is "48" then answer dept(52,"Haute-Marne",25,03)if S is "49" then answer dept(15,Cantal,71,04)if S is "50" then answer dept(63,"Puy-de-DÖme",73,04)if S is "51" then answer dept(40,Landes,58,05)if S is "52" then answer dept(64,"PyrÄnÄes-Atlantiques",59,05)if S is "53" then answer dept(65,"Hautes-PyrÄnÄes",62,05)if S is "54" then answer dept(06,"Alpes-Maritimes",92,04)if S is "55" then answer dept(43,"Haute-Loire",71,04)if S is "56" then answer dept(32,Gers,62,05)if S is "57" then answer dept(31,"Haute-Garonne","61 - 62",05)if S is "58" then answer dept(81,Tarn,63,05)if S is "59" then answer dept(07,ArdÅche,75,04)if S is "60" then answer dept(38,IsÅre,"7╔ - 74 ou 76",04)if S is "61" then answer dept(48,LozÅre,66,04)if S is "62" then answer dept(30,Gard,66,04)if S is "63" then answer dept(66,"PyrÄnÄes-Orientales",68,04)if S is "64" then answer dept(34,HÄrault,67,04)if S is "65" then answer dept(09,AriÅge,61,05)if S is "66" then answer dept(11,Aude,68,04)if S is "67" then answer dept(13,"Bouches-du-RhÖne","90 - 91 ou 42",04)if S is "68" then answer dept(83,Var,94,04)if S is "69" then answer dept(05,"Hautes-Alpes",92,04)if S is "70" then answer dept(71,"SaÖne-et-Loire",85,03)if S is "71" then answer dept(90,"Territoire de Belfort",84,03)if S is "72" then answer dept(88,Vosges,29,03)if S is "73" then answer dept(21,"CÖte-d'Or",80,03)if S is "74" then showIdFif S is "75" then answer dept(77,"Seine-et-Marne","6╔",01)if S is "76" then answer dept(84,Vaucluse,90,03)if S is "77" then answer dept(46,Lot,65,05)if S is "78" then answer dept(85,VendÄe,51,02)if S is "79" then answer dept(10,Aube,25,03)if S is "80" then answer dept(08,Ardennes,24,03)if S is "81" then answer dept(57,Moselle,"8╔",03)if S is "82" then answer dept(44,"Loire-Atlantique","40 - 51",02)if S is "83" then answer dept(36,Indre,54,02)if S is "84" then answer dept(69,RhÖne,"72 - 74 ou 78",04)if S is "85" then answer dept(74,"Haute-Savoie",50,04)if S is "86" then answer dept(73,Savoie,79,04)if S is "87" then answer dept(82,"Tarn-et-Garonne",63,05)if S is "90" then answer dept(50,Manche,33,02)if S is "91" then answer dept(42,Loire,77,04)if S is "92" then answer "Etes-vous certain que je suis un dÄpartement ???" with "Succeptible" or "avec ìa !!"if S is "93" thenif there is a window "Au Secours !" then close window "Au Secours !"Pictoid "Au Secours !","Aide", "bigwindoidzoom", "m=10"end ifif S is "88" thenrepeat 4Play "2"end repeatanswer "Bien tentÄ... mais le trÄsor n'est pas lê !"repeat 4Play "2"end repeatend ifif S is "89" thenrepeat 4Play "2"end repeatanswer "PersÄvÄrez... en allant voir plus au large !"repeat 4Play "2"end repeatend ifend ifif WName is "Ile-de-France" thenif S is "1" then answer dept(95,"Val-d'Oise","3╔",01)if S is "2" then answer dept(78,Yvelines,"3╔",01)if S is "3" then answer dept(91,Essonne,"6╔",01)if S is "4" then answer dept(93,"Seine-St-Denis","4╔",01)if S is "5" then answer dept(94,"Val-de-Marne","4╔",01)if S is "6" then answer dept(92,"Hauts-de-Seine","4╔",01)if S is "7" then answer dept(75,Paris,"4╔ - 5╔",01)if S is "8" then answer "Etes-vous certain que je suis un dÄpartement ???" with "Succeptible" or "avec ìa !!"end ifif WName is "Outre-Mer" thenif S is "1" then answer "PolynÄsie franìaise."&return&"Code tÄlÄphonique territorial: 689"┬&return&&return& "NumÄro abonnÄ ê faire prÄcÄder du  06 89."if S is "2" then answer "Nouvelle CalÄdonie."&return&"Code tÄlÄphonique territorial: 687"┬&return&&return& "NumÄro abonnÄ ê faire prÄcÄder du  06 87."if S is "3" then answer "97-5 - St-Pierre & Miquelon."&return&"Code tÄlÄphonique territorial: 508"┬&return&&return& "NumÄro abonnÄ ê faire prÄcÄder du  05 08."if S is "4" then answer "97-6 - Mayotte."&return&"Code tÄlÄphonique territorial: 269"┬&return&&return& "NumÄro abonnÄ ê faire prÄcÄder du  02 69."if S is "5" then answer dept("97-1",Guadeloupe,590," 05 90")if S is "6" then answer dept("97-2",Martinique,596," 05 96")if S is "7" then answer dept("97-3","Guyane franìaise",594," 05 94")if S is "8" then answer dept("97-4",RÄunion,262," 02 62")if S is "10" then answer "Wallis & Futuna."&return&"Code tÄlÄphonique territorial: 681"┬&return&&return& "NumÄro abonnÄ ê faire prÄcÄder du  06 81."if S is "9" thenrepeat 6Play "2"end repeatanswer "Bravo ! Le trÄsor est lê, mais il vous faut prendre le bateau ou l'avion pour en prendre possession !" with "J'y cours !!"showLetrÄsorrepeat 6Play "2"end repeatplay "3"end ifend ifif WName is "Le trÄsor" thenplay "3"answer "Passerais tu ta vie ê me chercher par delê les montagnes et les ocÄans que tu ne me trouverais pas."&return& "Je suis le fruit de ton dÄlirium trÄmens." with "Mangaaaaaa"close window "Le trÄsor"play "3"end ifif WName is "DurÄe/Distance" thenif S = 1 then showMoney2end ifend MouseUpInPictoidon showIdFset cursor to watchif there is not a window "Ile-de-France" thenPictoid "Ile-de-France","IdF", "bigwindoidzoom", "m=10"else close window "Ile-de-France"end showIdFon showRegset cursor to watchif there is not a window "RÄgions" thenif videoDepth() = 0 then Pictoid "RÄgions","RC","0,0,300,300","C=false","K=true"else Pictoid "RÄgions","RC", "bigwindoidzoom", "m=10"else close window "RÄgions"end showRegon showDeptset cursor to watchif there is not a window "DÄpartements" thenif videoDepth() = 0 thenPictoid "DÄpartements","DC","0,0,300,300","C=false","K=true"else Pictoid "DÄpartements","DC", "bigwindoidzoom", "m=10"else close window "DÄpartements"end showDepton showDTomset cursor to watchif there is not a window "Outre-mer" thenif videoDepth() = 0 thenPictoid "Outre-mer","Outre-mer","0,0,420,300","C=false","K=true"else Pictoid "Outre-mer","Outre-mer","bigwindoidzoom", "m=10"else close window "Outre-mer"end showDTomon showLetrÄsorif there is not a window "Le trÄsor" thenif the optionKey is down then Pictoid "Le trÄsor","TrÄsor", "bigwindoidzoom"else Pictoid "Le trÄsor","TrÄsor", "Rect","0,-20"else close window "Le trÄsor"end showLetrÄsoron  showMoneyset cursor to watchif there is not a window "DurÄe/Distance" thenif videoDepth() = 0 thenPictoid "DurÄe/Distance","DurÄe/Distance","0,-10,512,300","C=false","K=true"else Pictoid "DurÄe/Distance","DurÄe/Distance","bigwindoidzoom"else close window "DurÄe/Distance"end showMoneyon  showMoney1set cursor to watchif there is not a window "NumÄros ê surfacturation" thenif videoDepth() = 0 thenPictoid "NumÄros ê surfacturation","Surfacturation","0,-10"else Pictoid "NumÄros ê surfacturation","Surfacturation","bigwindoidzoom"else close window "NumÄros ê surfacturation"end showMoney1on  showMoney2set cursor to watchif there is not a window "Modulations horaires" thenif videoDepth() < 4 thenPictoid "Modulations horaires","Avantages horaires NB","0,-10"elsePictoid "Modulations horaires","Avantages horaires","bigwindoidzoom", "m=10"end ifelse close window "Modulations horaires"end showMoney2
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 05
  10. -- high flags: 2007
  11. -- rect: left=15 top=12 right=226 bottom=230
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: 
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   play "1"
  23. end mouseUp
  24.  
  25.  
  26. -- part 2 (button)
  27. -- low flags: 00
  28. -- high flags: A000
  29. -- rect: left=327 top=206 right=226 bottom=401
  30. -- title width / last selected line: 0
  31. -- icon id / first selected line: 0 / 0
  32. -- text alignment: 1
  33. -- font id: 0
  34. -- text size: 12
  35. -- style flags: 0
  36. -- line height: 16
  37. -- part name: Quitter
  38. ----- HyperTalk script -----
  39. on mouseUp
  40.   answer return &"Voulez-vous vraiment quitter HyperCard ?" with "Non ! Merci" or OK
  41.   if it = OK then type "Q" with cmdKey
  42. end mouseUp
  43.  
  44.  
  45. -- part 3 (button)
  46. -- low flags: 00
  47. -- high flags: A000
  48. -- rect: left=326 top=177 right=195 bottom=404
  49. -- title width / last selected line: 0
  50. -- icon id / first selected line: 0 / 0
  51. -- text alignment: 1
  52. -- font id: 0
  53. -- text size: 12
  54. -- style flags: 0
  55. -- line height: 16
  56. -- part name: Co₧ts
  57. ----- HyperTalk script -----
  58. on mouseup
  59.   answer "Que d├⌐sirez-vous consulter ?" with  "N┬░ ├á surfacturation" or "Dur├⌐e/Distance" or "Avantages Horaires"
  60.   if it is "Dur├⌐e/Distance" then showMoney
  61.   if it is "N┬░ ├á surfacturation" then showMoney1
  62.   if it is "Avantages Horaires" then showMoney2
  63. end mouseup
  64.  
  65.  
  66. -- part 5 (button)
  67. -- low flags: 00
  68. -- high flags: A000
  69. -- rect: left=240 top=177 right=195 bottom=318
  70. -- title width / last selected line: 0
  71. -- icon id / first selected line: 0 / 0
  72. -- text alignment: 1
  73. -- font id: 0
  74. -- text size: 12
  75. -- style flags: 0
  76. -- line height: 16
  77. -- part name: ╦ propos
  78. ----- HyperTalk script -----
  79. on mouseUp
  80.   put "├Ç propos" into theWindow
  81.   if videoDepth() Γëñ2 then put "├Ç proposNB" into theWindow
  82.   if there is not a window theWindow then
  83.     repeat 2
  84.       play "4"
  85.     end repeat
  86.     picture theWindow,resource,shadow,false,8
  87.     show window theWindow at 0,-20
  88.   else close Window "├Ç propos"
  89. end mouseUp
  90.  
  91.  
  92. -- part 6 (button)
  93. -- low flags: 00
  94. -- high flags: A000
  95. -- rect: left=240 top=207 right=225 bottom=317
  96. -- title width / last selected line: 0
  97. -- icon id / first selected line: 0 / 0
  98. -- text alignment: 1
  99. -- font id: 0
  100. -- text size: 12
  101. -- style flags: 0
  102. -- line height: 16
  103. -- part name: Autres
  104. ----- HyperTalk script -----
  105. on mouseUp
  106.   if there is not a window "Autres" then
  107.     if videoDepth() = 0 then
  108.       Pictoid "Autres","Divers","0,-10,480,300","C=false","K=true"
  109.     else Pictoid "Autres","Divers","bigwindoidzoom", "m=10"
  110.   else close window "Autres"
  111. end mouseUp
  112.  
  113.  
  114. -- part 7 (button)
  115. -- low flags: 00
  116. -- high flags: A000
  117. -- rect: left=259 top=41 right=57 bottom=383
  118. -- title width / last selected line: 0
  119. -- icon id / first selected line: 0 / 0
  120. -- text alignment: 1
  121. -- font id: 3
  122. -- text size: 9
  123. -- style flags: 0
  124. -- line height: 16
  125. -- part name: RÄgions
  126. ----- HyperTalk script -----
  127. on mouseUp
  128.   showReg
  129. end mouseUp
  130.  
  131.  
  132. -- part 8 (button)
  133. -- low flags: 00
  134. -- high flags: A000
  135. -- rect: left=259 top=67 right=83 bottom=383
  136. -- title width / last selected line: 0
  137. -- icon id / first selected line: 0 / 0
  138. -- text alignment: 1
  139. -- font id: 3
  140. -- text size: 9
  141. -- style flags: 0
  142. -- line height: 16
  143. -- part name: DÄpartements
  144. ----- HyperTalk script -----
  145. on mouseUp
  146.   showDept
  147. end mouseUp
  148.  
  149.  
  150. -- part 9 (button)
  151. -- low flags: 00
  152. -- high flags: A000
  153. -- rect: left=259 top=93 right=109 bottom=383
  154. -- title width / last selected line: 0
  155. -- icon id / first selected line: 0 / 0
  156. -- text alignment: 1
  157. -- font id: 3
  158. -- text size: 9
  159. -- style flags: 0
  160. -- line height: 16
  161. -- part name: Ile-de-France
  162. ----- HyperTalk script -----
  163. on mouseUp
  164.   showIdF
  165. end mouseUp
  166.  
  167.  
  168. -- part 10 (button)
  169. -- low flags: 00
  170. -- high flags: A000
  171. -- rect: left=259 top=119 right=135 bottom=383
  172. -- title width / last selected line: 0
  173. -- icon id / first selected line: 0 / 0
  174. -- text alignment: 1
  175. -- font id: 3
  176. -- text size: 9
  177. -- style flags: 0
  178. -- line height: 16
  179. -- part name: Dom - Tom - Ct
  180. ----- HyperTalk script -----
  181. on mouseUp
  182.   showDTom
  183. end mouseUp
  184.  
  185.  
  186. -- part 13 (button)
  187. -- low flags: 00
  188. -- high flags: 2000
  189. -- rect: left=249 top=9 right=32 bottom=390
  190. -- title width / last selected line: 0
  191. -- icon id / first selected line: 0 / 0
  192. -- text alignment: 1
  193. -- font id: 0
  194. -- text size: 12
  195. -- style flags: 0
  196. -- line height: 16
  197. -- part name: 
  198. ----- HyperTalk script -----
  199. on mouseUp
  200.   answer "Ten Digits - Version 1.1 - Novembre 1995."
  201. end mouseUp
  202.  
  203.  
  204. -- part 14 (button)
  205. -- low flags: 00
  206. -- high flags: A000
  207. -- rect: left=259 top=145 right=162 bottom=383
  208. -- title width / last selected line: 0
  209. -- icon id / first selected line: 0 / 0
  210. -- text alignment: 1
  211. -- font id: 3
  212. -- text size: 9
  213. -- style flags: 0
  214. -- line height: 16
  215. -- part name: Codes
  216. ----- HyperTalk script -----
  217. on mouseUp
  218.   ask "Entrez les deux premiers chiffres de votre num├⌐ro de t├⌐l├⌐phone " &"(pr├⌐c├⌐d├⌐ du 1 en Ile-de-France) pour conna├«tre votre futur pr├⌐fixe et votre zone."
  219.   if it ="" or the result Γëá "" then exit mouseUp
  220.   repeat with i = number of chars of it down to 1
  221.     if char i of it is not a number or char i of it = space then next repeat
  222.     put char i of it before request
  223.   end repeat
  224.   put char 1 to 3 of request into request
  225.   if request <10 then
  226.     isNoGood
  227.     exit mouseUp
  228.   end if
  229.   if (request>99 and request<130) or request>169 then
  230.     isNoGood
  231.     exit mouseUp
  232.   end if
  233.   if (requestΓëÑ130 and requestΓëñ169) then
  234.     put char 2 to 3 of request into request
  235.     if request is not in "30,34,39,40,41,42,43,44,45,46,47,48,49,53," &"55,60,64,69" then
  236.       isNoGood
  237.       exit mouseUp
  238.     else  answer newCode("┬½┬áIle-de-France┬á┬╗","01",request," R├⌐gion Ile-de-France  (1) ")
  239.     exit mouseUp
  240.   end if
  241.   if request <100 then
  242.     if request is in "31,32,33,35,37,38,39,40,41,43,47,48,51,54,96,97,98,99"
  243.     then answer newCode("┬½┬áNord-Ouest┬á┬╗","02",request)
  244.   else if request is in "20,21,22,23,24,25,26,27,28,29,44,60,80,81,82,83," &"84,85,86,87,88,89" then answer newCode("┬½┬áNord-Est┬á┬╗","03",request)
  245.   else if request is in "42,50,66,67,68,69,70,71,72,73,74,75,76,77,78,79," &"90,91,92,93,94,95" then answer newCode("┬½┬áSud-Est┬á┬╗","04",request)
  246.   else if request is in "34,45,46,49,53,55,56,57,58,59,61,62,63,65"
  247.   then answer newCode("┬½┬áSud-Ouest┬á┬╗","05",request)
  248. else
  249.   isNoGood
  250.   exit mouseUp
  251. end if
  252. end if
  253. end mouseUp
  254.  
  255. function newCode zone,code,cl├⌐,IdF
  256. return IdF &cl├⌐ &" + 6 chiffres" & return & "Vous serez rattach├⌐ ├á la" &" future zone : "& return & zone &"."& return & "Votre nouveau num├⌐ro " &"commencera par : " & return & "           " & code &space& cl├⌐ &&" + 6 chiffres"
  257. end newCode
  258.  
  259. on isNoGood
  260.   answer "Les renseignements fournis ne correspondent ├á aucun code t├⌐l├⌐phonique " &"en usage en m├⌐tropole." & return &" * * Pour les num├⌐ros sp├⌐ciaux, urgencesΓǪ cliquez sur le bouton ┬½Autres┬╗.* *" & return & "ΓÇó Sinon, reformulez votre demande, merci.ΓÇó" with Annuler or Autres or Recommencer
  261.   if it = recommencer then mouseUp
  262.   if it = Autres then send mouseUp to btn "Autres"
  263. end isNoGood
  264.  
  265.  
  266. -- part 16 (button)
  267. -- low flags: 00
  268. -- high flags: A000
  269. -- rect: left=390 top=4 right=21 bottom=413
  270. -- title width / last selected line: 0
  271. -- icon id / first selected line: 0 / 0
  272. -- text alignment: 1
  273. -- font id: 3
  274. -- text size: 12
  275. -- style flags: 0
  276. -- line height: 16
  277. -- part name: ┘
  278. ----- HyperTalk script -----
  279. on mouseUp
  280.   if there is not a window "MPadLink" then
  281.     if videoDepth() <4 then
  282.       pictoid "MPadLink Pub","Pub color","0,-6,500,280","C=false","K=true"
  283.     else pictoid "MPadLink Pub","Pub Color","bigwindoidzoom"
  284.   else close window "MPadLink"
  285. end mouseUp
  286.  
  287.  
  288. -- part contents for card part 1
  289. -- note: style data is present
  290. ----- text -----
  291. Ü